package com.dhh.web.modules.menu.repo;

import com.dhh.web.modules.menu.domain.Menu;
import com.dhh.web.modules.user.domain.Perms;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;
import java.util.Set;

/**
 * @Auther: dhh
 * @Date: 2018/11/20 10:51
 * @Email: fzlinjianhui@163.com
 * @Description:
 */
public interface MenuRepo extends JpaRepository<Menu,String> {

    List<Menu> findAllByPermsInAndPidIsOrderByOrderNum(Set<Perms> perms, String pid);

}
